home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 73 < prev    next >
Internet Message Format  |  1996-08-06  |  1KB

  1. Path: inforamp.net!usenet
  2. From: pcurran@inforamp.net (Peter Curran)
  3. Newsgroups: comp.std.c
  4. Subject: Re: int's and zero
  5. Date: Wed, 10 Jan 1996 15:14:53 GMT
  6. Organization: PSC Enterprises
  7. Message-ID: <4d0kd3$d8l@sam.inforamp.net>
  8. References: <4cth4e$4q@odin.funcom.no> <4cub1a$jbl@alterdial.UU.NET>
  9. Reply-To: pcurran@inforamp.net
  10. NNTP-Posting-Host: ts13-15.tor.inforamp.net
  11. X-Newsreader: Forte Free Agent 1.0.82
  12.  
  13. On 9 Jan 1996 18:09:46 GMT in article <4cub1a$jbl@alterdial.UU.NET>
  14.     rex@aussie.com (rex@aussie.com) wrote:
  15.  
  16. >There was considerable debate about whether or not integers could be stored 
  17. >as BCD, Grey code, or some such, but in the end, we decided that they had to 
  18. >be stored as binary numbers. And, of course, 2's comp, 1's comp, and signed 
  19. >magnitude all use all-bits-zero for zero. The only thing that could cause a 
  20. >problem is for machines/compilers with signed zeros; I think that negative 
  21. >zero might have some other bit pattern.
  22.  
  23. I don't think this is the full story.  The *used* bits have to be zero.
  24. However, there has been agreement that the integers can have "holes" (unused
  25. bits), and those bits could be required to be non-zero in some architectures, I
  26. would think. 
  27.  
  28. --
  29. Peter Curran                               pcurran@inforamp.net
  30.  
  31.